bitkeeper revision 1.686 (400f2a0fOr4fmsss35howfO9K7Gurg)
authorkaf24@scramble.cl.cam.ac.uk <kaf24@scramble.cl.cam.ac.uk>
Thu, 22 Jan 2004 01:40:31 +0000 (01:40 +0000)
committerkaf24@scramble.cl.cam.ac.uk <kaf24@scramble.cl.cam.ac.uk>
Thu, 22 Jan 2004 01:40:31 +0000 (01:40 +0000)
XenoUtil.py:
  Fix paremeter types in VBD setup.

tools/xc/py/XenoUtil.py

index db677e9b8395e2a7da1e341ac33737f244ff399e..f17939a4a207fd3e20cbe1d0137329f74682c72f 100644 (file)
@@ -122,7 +122,7 @@ def lookup_raw_partn(partition):
         if line:
             return [ { 'device' : blkdev_name_to_number(drive),
                        'start_sector' : 0,
-                       'nr_sectors' : string.atol(line) * 2,
+                       'nr_sectors' : int(line) * 2,
                        'type' : 'Disk' } ]
         return None
 
@@ -136,8 +136,8 @@ def lookup_raw_partn(partition):
                        'size=\s*([0-9]+), Id=\s*(\S+).*$', line)
         if m:
             return [ { 'device' : blkdev_name_to_number(drive),
-                       'start_sector' : string.atol(m.group(1)),
-                       'nr_sectors' : string.atol(m.group(2)),
+                       'start_sector' : int(m.group(1)),
+                       'nr_sectors' : int(m.group(2)),
                        'type' : m.group(3) } ]
     
     return None